﻿using System;
using UnityEngine;
using UnityEngine.UI;

namespace Studio
{
	// Token: 0x0200055A RID: 1370
	public class UI_OnOffImage : MonoBehaviour
	{
		// Token: 0x060022FC RID: 8956 RVA: 0x000D3DBC File Offset: 0x000D1FBC
		private void Start()
		{
			Toggle component = base.GetComponent<Toggle>();
			if (component)
			{
				this.OnChange(component.isOn);
			}
		}

		// Token: 0x060022FD RID: 8957 RVA: 0x000D3DE8 File Offset: 0x000D1FE8
		public void OnChange(bool check)
		{
			if (this.imgOn)
			{
				this.imgOn.enabled = check;
			}
			if (this.imgOff)
			{
				this.imgOff.enabled = !check;
			}
		}

		// Token: 0x04002405 RID: 9221
		public Image imgOn;

		// Token: 0x04002406 RID: 9222
		public Image imgOff;
	}
}
